package java67_adv8;

import java.lang.reflect.Array;
import java.util.Arrays;

public class ArrayTest {

	public static void main(String[] args) {
		Object o = Array.newInstance(double.class, 10);
		Array.set(o, 0, 3.14);
		Array.set(o, 1, 4444);
		Array.set(o, 2, 3.15);
		System.out.println(Array.get(o, 2));
		double[] d = (double[]) o;
		System.out.println(Arrays.toString(d));
		// double d[]=new double[10];

	}

}
